package com.feicheng.house.service;

import com.feicheng.house.entity.BuyOrder;
import com.feicheng.house.result.ResultInfo;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author feichengTech
 * @since 2021-11-06
 */
public interface IBuyOrderService extends IService<BuyOrder> {
	
	
	/**
	 * 新增订单
	 * @param buyOrder
	 * @return Boolean值
	 */
	ResultInfo addOne(BuyOrder buyOrder);
	/**
	 * 修改订单
	 * @param buyOrderNmber
	 * @return Boolean值
	 */
	ResultInfo updateOne(BuyOrder buyOrder);
	/**
	 * 判断是否是新用户,根据clientId查询客户的订单数量，大于0不是新用户
	 * @param clientId
	 * @return buyOrder
	 */
	ResultInfo getCount(Integer clientId);
}
